<template>
    <div>
        <van-search v-model="value" show-action label="东京" placeholder="请输入搜索关键词" @search="onSearch">
            <template #action>
                <div @click="onClickButton">搜索</div>
            </template>
        </van-search>
    </div>
</template>

<script setup>
import {useRouter} from 'vue-router';    
let router=useRouter()
let onSearch=()=>
{
    console.log('触发了搜索事件');
    router.push('/sousuo')
}
</script>

<style lang="scss" scoped></style>